package com.electronsys.dept.action;

import java.util.List;

import com.electronsys.dept.service.IDeptService;
import com.electronsys.pojo.Employee;
import com.opensymphony.xwork2.ActionSupport;

public class DeptEmpMessAction extends ActionSupport{
	private Integer empId;
	private List<Employee> elist;
	private IDeptService deptService;
	public String execute(){
		System.out.println("dept emp mess...");
		elist = deptService.empMessList(empId);
		return SUCCESS;
	}
	public Integer getEmpId() {
		return empId;
	}
	public void setEmpId(Integer empId) {
		this.empId = empId;
	}
	public List<Employee> getElist() {
		return elist;
	}
	public void setElist(List<Employee> elist) {
		this.elist = elist;
	}
	public IDeptService getDeptService() {
		return deptService;
	}
	public void setDeptService(IDeptService deptService) {
		this.deptService = deptService;
	}
	
}
